Block Senders {SPAM}
Hello,I would need to block a bunch of senders xxx@domain.com; yyy@domain.com etc... from the Edges.And I was wondering whether I could create a shell command that would block all the senders.Is it possible to do that?I have the list in a excel sheet, how should I save that list to be able to use it with shell command.Can Anyone give me that shell command if it exits? It would really help me out.Many thanks
April 9th, 2009 9:14am

Hi,how many senders do you want to block? Afaik there is a limit. If most of them are from the same domain i would try to block the domain instead.Viele Gre Walter Steinsdorfer MVP Exchange Server http://msmvps.org/blogs/wstein
Free Windows Admin Tool Kit Click here and download it now
April 9th, 2009 11:15am

Hello,No it is about blocking different senders + domains --> xxx@domainA.com; yyy@domainB.com etc...I would have about 10-30 senders to block everyday... we do not have grey list ;-(Do you think it is possible to block a list of senders using shell command?Thanks.
April 9th, 2009 11:22am

Hi,yes, it is. Have a look at the cmdlet "Set-SenderFilterConfig -BlockedSenders"Im not sure if you really need that. Did you get the other possibilities Exchange Edge has for Anti-Spam?hthViele Gre Walter Steinsdorfer MVP Exchange Server http://msmvps.org/blogs/wstein
Free Windows Admin Tool Kit Click here and download it now
April 9th, 2009 12:15pm

Please use the method below to import the blocked senders in bulk: a. Move all sender addresses into a txt file as format of one entry per line like below Jamesluo@spamabc.com Jamesluo@spamxyz.com Jamesluo@spam123.com Jamesluo@spam456.net b. Then, use the cmdlet below to import the list via EMS on the Edge server Set-SenderFilterConfig -BlockedSenders (Get-Content C:\BlockedList.txt) c. Finally, use cmdlet Get-SenderFilterConfig | FL to verify the result My Lab: (Exchange server 2007 SP1)
April 9th, 2009 12:32pm

awesome!! it work perfectly and I got exactly what I was expected.Many Thanks.I have just have a beside question, when I type the command: Get-SenderFilterConfig | FLI get --> WhenChanged : 09/04/2009 13:01:16I was wondering whether I could get a sort of history in a text file? Like getting all the changed made from Monday to Friday on the Edge.Would it be possible??
Free Windows Admin Tool Kit Click here and download it now
April 9th, 2009 3:00pm

Per my knowledge, agents can only record the time of the changes that they make to the messages, you may seek some monitor software for it Managing Agent Logging Managing And Filtering Anti-Spam Agent Logs Notes: Since this is another question in this thread, I would suggest you to open a new thread for the second question. It will help all community members to better understand the original problem & reply, which will also make the whole thread clearer, concise and fast the reply for your reference
April 10th, 2009 5:41am

Hello James,I have address more or less the same question on the forum (SPAM - content Filtering Exch 2007)It's about blocking bad word: Add-ContentFilterPhrase -Phrase:"This is a bad phrase" -Influence:BadWordThen,I would need to do the same as I did for the senders. I need to block bunch of bad words that I have already copied in a notepad document. But I do not know the correct line command to recall the notepad file with all bad words in it.Could you please help me on that??NB : REcalling your last command, it works perfectly. However, if I manually add a sender from the Exchange console management and then re-run the command you gave me, my entry will be erased and only senders from the file will be blocked.
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2009 11:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics